const mysql = require('mysql');
//创建连接池
const pool = mysql.createPool({
    host: 'localhost',
    user: 'root',
    password: '123456',
    database: 'green',
    connectionLimit: 10
})

module.exports=pool

//  TRUNCATE TABLE USER  清空数据库
// ALTER TABLE uploads MODIFY createTime TIMESTAMP DEFAULT CURRENT_TIMESTAMP;  更改表的默认值
